import request from '@/utils/request'

export function pageBrand(data) {
  return request({
    url: '/brand/page',
    method: 'post',
    data
  })
}
export function getBrand(id) {
  return request({
    url: `/brand/get/${id}`,
    method: 'get',
  })
}
export function deleteBrand(id) {
  return request({
    url: `/brand/delete/${id}`,
    method: 'delete',
  })
}
export function saveBrand(data) {
  return request({
    url: '/brand/save',
    method: 'put',
    data
  })
}
export function editBrand(data) {
  return request({
    url: '/brand/edit',
    method: 'post',
    data
  })
}
export function listBrand() {
  return request({
    url: '/brand/list',
    method: 'get',
  })
}
